<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@page import="org.feluma.sgci.entidade.Cadastro" %>
<%@page import="org.feluma.sgci.dao.CadastroDAO" %>
<%@page import="org.feluma.sgci.dao.CursoDAO" %>
<%@page import="org.feluma.sgci.entidade.Curso" %>
<%@page import="org.feluma.sgci.util.ConverteData" %>
<%@page import="java.util.ArrayList" %>
<%

Cadastro objCadastro = (Cadastro)request.getAttribute("cadastro");
CadastroDAO daoCadastro = new CadastroDAO();
CursoDAO cursoDao = new CursoDAO();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Expires" content="0">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<title>FCMMG :: SGCI</title>
<style type="text/css">
<!--
@import url("css/estilo.css");
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.titulo2 strong h2 {
	color: #FFF;
}
.mensagem {
	color: #F00;
}
-->
</style>
</head>
<body background="imagens/fundo.gif" style="background-attachment:fixed">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  		<tr>
    		<td height="60" background="../imagens/fundo_azul.jpg">
    			<table width="100%" border="0" cellspacing="4" cellpadding="4">
      				<tr>
        				<td height="50" bgcolor="#172234" class="titulo2"><strong><h2>Cadastro</h2></strong></td>
      				</tr>
				</table>
			</td>
    	</tr>
  		<tr>
    		<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="2">
        			<tr>
                    	<td width="14%">&nbsp;</td>
                        <td width="42%">&nbsp;</td>
                        <td width="44%">&nbsp;</td>
                    </tr>
  					<tr>
    					<td colspan="3"><h3><%= objCadastro.getCurso().getNome() %></h3></td>
    				</tr>
  					<tr>
    					<td align="right">Processo:&nbsp;&nbsp;</td>
      					<td> <%= cursoDao.getProcesso(objCadastro.getCurso()) %></td>
    					<td>&nbsp;</td>
  					</tr>
					<tr>
    					<td align="right">Data Cadastro:&nbsp;&nbsp;</td>
	    				<td><%= ConverteData.converteDataString(objCadastro.getDataCadastro()) %></td>
    					<td>&nbsp;</td>
  					</tr>
        			<tr>
    					<td colspan="3">
                        	<table width="100%" border="0" cellspacing="0" cellpadding="0"> 
              					<tr>
            						<td width="14%">&nbsp;</td>
            						<td colspan="5">&nbsp;</td>
              					</tr>  
              					<tr>
    		    					<td colspan="6" align="center"  valign="middle" bgcolor="#999999"><h2>Dados do Candidato</h2></td>
   		      					</tr>  
                                <tr>
            						<td>&nbsp;</td>
            						<td colspan="5">&nbsp;</td>
              					</tr> 
                                <tr>
            						<td align="right" class="texto">Nome: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getNome() %></strong></td>
              					</tr> 
                                <tr>
            						<td align="right" class="texto">Endere&ccedil;o: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getEndereco() %></strong></td>
              					</tr> 
                                <tr>
            						<td align="right" class="texto">Numero: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getNumero() %></strong></td>
              					</tr> 
                                <tr>
            						<td align="right" class="texto">Complemento: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getComplemento() %></strong></td>
              					</tr> 
                                <tr>
            						<td align="right" class="texto">Bairro: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getBairro() %></strong></td>
              					</tr> <tr>
            						<td align="right" class="texto">Cidade: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getCidade() %></strong></td>
              					</tr> <tr>
            						<td align="right" class="texto">Estado: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getEstado() %></strong></td>
              					</tr> <tr>
            						<td align="right" class="texto">Cep: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getCep() %></strong></td>
              					</tr> <tr>
            						<td align="right" class="texto">Email: </td>
            						<td colspan="5" class="texto"><strong><%= objCadastro.getEmail() %></strong></td>
              					</tr> 
                                <tr>
            						<td align="right" class="texto">Celular: </td>
            						<td width="17%" class="texto"><strong><%= objCadastro.getTelefoneCelular() %></strong></td>
            						<td width="6%" align="right" class="texto">Residencia:</td>
           						  <td width="16%" align="left" class="texto"><strong><%= objCadastro.getTelefoneResidencial() %></strong></td>
       						    <td width="6%" align="right" class="texto">Comercial:</td>
            						<td width="41%" align="left" class="texto"><strong><%= objCadastro.getTelefoneComercial() %></strong></td>
              					</tr> 
                                
                                <tr>
            						<td>&nbsp;</td>
            						<td colspan="5">&nbsp;</td>
              					</tr>
                                
  		  					</table>
                     	</td>
	    			</tr>
				</table> 
    		</td>
  		</tr>
  		<tr>
   			<td height="50"><div align="center"><input type="submit" name="button" id="button" value="Fechar janela" class="botao" onClick="window.close()"/></div></td>
  		</tr>
  		<tr>
    		<td><div align="center"></div></td>
  		</tr>
	</table>
</body>
</html>
